
"""
17-dars. Mavzu: Id.
"""


X = 10
print(X, id(X)) # Malumot numeri - id.
X = 20
print(X, id(X))

S = 'hello'
print(S, id(S))
S += ' world'
print(S, id(S))

L = [1, 2, 3] # To'rtburchak qavs ro'yxat deyiladi.
print(L, id(L))
L.append(5) # ro'yxatga narsa qo'shadi.
print(L, id(L))

X = 10
Y = X

print(X, id(X))
print(Y, id(Y))

X = 15
print(X, id(X))
print(Y, id(Y))
L1 = [1, 2, 3]
L2 = L1
L2 = L1.copy()
L2 = L1[:] # :nuqta 0 dan oxirgacha belgilaydi.

print(L1, id(L1))
print(L2, id(L2))

L1.append((5))
print(L1, id(L1))
print(L2, id(L2))

X = 10
print(X)
